]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
perf: Use var for METRICS
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 5 Mar 2019 21:54:59 +0000 (22:54 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Thu, 21 Mar 2019 10:18:02 +0000 (10:18 +0000)
Each perf module exposes it to the scripting module to report metrics
after all tests have been run. The symbol's scope should allow that,
so declare it as var.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/440

js/perf/core.js
js/perf/hwtest.js

index 091a86a0f7348743f0bd723f1f320b8425ba1052..04ea3c49f60ec994a31ddc318b2dffeac15e0be6 100644 (file)
@@ -10,7 +10,7 @@ const Scripting = imports.ui.scripting;
 // someone should be able to get an idea of how well the shell is performing
 // on a particular system.
 
-let METRICS = {
+var METRICS = {
     overviewLatencyFirst:
     { description: "Time to first frame after triggering overview, first time",
       units: "us" },
index d5b417da32b6e2a6a0465a655b385e2c927af401..31a25a715744c16fcbc7d9c3d1b735d4ad2f3ddd 100644 (file)
@@ -2,7 +2,7 @@ const { Clutter, Gio, Gtk, Shell } = imports.gi;
 const Main = imports.ui.main;
 const Scripting = imports.ui.scripting;
 
-let METRICS = {
+var METRICS = {
     timeToDesktop:
     { description: "Time from starting graphical.target to desktop showing",
       units: "us" },